﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenTK;
using Gtk;

namespace Clandestine.Graphics.Window
{
    public class GLWidgetWindowHandler : WindowHandler
    {
    	public GLWidget GLWidget { get; private set; }
    	
        public GLWidgetWindowHandler(GLWidget glw)
        {
            this.GLWidget = glw;
        }

        public override void MakeContextCurrent()
        {
            GLWidget.GraphicsContext.MakeCurrent(GLWidget.WindowInfo);
        }

        public override void ReleaseContext()
        {
            GLWidget.GraphicsContext.MakeCurrent(null);
        }

        public override void ProcessEvents()
        {
            
        }

        public override void SwapBuffers()
        {
            
        }

        public override OpenTK.Input.KeyboardDevice Keyboard
        {
            get { throw new NotImplementedException(); }
        }

        public override OpenTK.Input.MouseDevice Mouse
        {
            get { throw new NotImplementedException(); }
        }
    }
}
